import http from "@/api";
/**
 * @name //发卡中心管理-部门管理
 */
// 新增组织结构树节点
export const addDpt = (params = {}) => {
  return http.post(`/department/organization/create`, params, { noLoading: true });
};

// 删除组织结构树节点
export const delDpt = (params: { orgUnitID: string }) => {
  return http.post(`/department/organization/delete`, params, { noLoading: true });
};

// 编辑组织结构树节点
export const editDpt = (params = {}) => {
  return http.post(`/department/organization/update`, params, { noLoading: true });
};

// 获取部门详情
export const getDptDtl = (params: { orgUnitID: string }) => {
  return http.get(`/department/organization/one`, params, { noLoading: true });
};
